
Instructions for replicating analyses presented in Steven Liao and 
Daniel McDowell. "Closing Time: Reputational Constraints 
on Capital Account Policy in Emerging Markets." Forthcoming. The Review of 
International Organizations.


######################################################################
*** I. Install Dependencies *** 
######################################################################

Replication created using R (version 4.0.1). Please install the following 
R packages used in the analyses.

- countrycode: version = 1.2.0

- grid: version = 4.0.1

- gridExtra: version = 2.3

- lfe: version = 2.8-5.1

- lme4: version = 1.1-26

- multcomp: version = 1.4-15

- RColorBrewer: version = 1.1-2

- scales: version = 1.1.1

- stargazer: version = 5.2.2 

- tidyverse: version = 1.3.0



######################################################################
*** II. Datasets ***
######################################################################

The following files are datasets used in the analyses. 
Please make sure to download all files in their original format.
  
- data-merge.RData
  A country-year dataset that contains all covariates used in the 
  analyses. The dataset contains 106 variables and 3360 observations.

- ratings-merge.RData
  A country-month dataset on sovereign credit ratings used to create 
  Fig. A.2 of the Online Appendix. The dataset contains 7 
  variables and 35,572 observations.

  

######################################################################
*** III. R codes for the Analyses ***
######################################################################

The R script "analysis.R" will reproduce all the figures and tables in the 
manuscript and Online Appendix. Please set the working directory 
to where this instruction file is located by changing MAIN_DIR in the 
R script.

